<template>
  <!--模板-->
  <h1>试试全局状态</h1>
  userState{{ userState }}
</template>


<script setup lang="ts" generic="T extends {name: string}">
  import { reactive } from 'vue'

  import store from '@/store-nf'

  // 解构出来
  const { userState } = store

  console.log('userState：', userState)


</script>